package me.zhengjie.modules.fund.repository;

import me.zhengjie.modules.fund.domain.UserStockLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;

public interface UserStockLogRepository extends JpaRepository<UserStockLog, Long>, JpaSpecificationExecutor<UserStockLog> {

    UserStockLog findByUserIdAndStockCodeAndDate(Long userId, String stockCode, Date date);
}
